
package com.fourcitizens.playas

import org.springframework.web.servlet.ModelAndView

class BeachWebController {

	def beachService
	
	def list = {
		return new ModelAndView("/index", [ beaches : beachService.getBeaches() ])
	}

	def get = {
		return new ModelAndView("/index", [ beach : beachService.getBeach(Long.valueOf(params.beachId)) ])
	}
	
}
